package com.lagou.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
// 相当于配置了@Responsbody和@Controller
@RestController
public class HelloController {
    @RequestMapping("/demo")
    public String demo() {
        return "hello,Spring Boot!";
    }
}
